<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title>物流信息</title>


    <link rel="stylesheet" href="__HOMECSS__/style.css">
    <script src="__HOMEJS__/jquery-1.7.2.min.js"></script>
    <script src="__PUBLIC__/layer/layer.js"></script>

</head>


<body >
{if condition="!$aftersale['shipping_number_user']"}
    <form method="post">
        <div class="logistics">
            <p><span>物流单号</span> <input type="text" placeholder="请填写单号" name="number" required></p>
            <p><span>快递公司</span>
                <select name="code" style="width: calc(100% - 76px);" required>
                    <option value="youzhengguonei">平邮</option>
                    <option value="ems">EMS</option>
                    <option value="shunfeng">顺丰</option>
                    <option value="shentong">申通</option>
                    <option value="yuantong">圆通</option>
                    <option value="zhongtong">中通</option>
                    <option value="huitongkuaidi">百世汇通</option>
                    <option value="yunda">韵达</option>
                    <option value="tiantian">天天</option>
                    <option value="youshuwuliu">优速</option>
                </select>
            </p>

        </div>
        <div class="address_new">
            <p><button type="submit" style="height: 100%;width: 100%;background: none;color: #fff;">完成</button></p>
        </div>
    </form>
{else/}
    <div>
        <div class="logistics_odd">
            <span>运单号码</span>
            <span>{$aftersale.shipping_number_user}</span>
        </div>
        <div class="logistics logistics_one">
            <p style="text-align: center">查询中，请稍等...</p>
        </div>
    </div>
    <script>
        $.ajax({
            url:"{:Url('Order/aftersaleShipping')}",
            data:{id:"{$aftersale.id}"},
            type:"get",
            success:function(html){
                $('.logistics_one').html(html);
            }
        })
    </script>
{/if}
</body>
</html>
